package com.senthink.gl.business.forgetpw;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 重置密码参数请求实体
 * @author yuanpeng@senthink.com
 * @data 2018-01-26 11:34
 */

@Data
@ApiModel(value = "重置密码参数请求实体")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ForgetPasswordRequest {

    @NotNull(groups = {ResetPassword.class})
    @ApiModelProperty(value = "账号")
    private String account;

    @NotNull(groups = {ResetPassword.class})
    @ApiModelProperty(value = "密码")
    private String password;

    @NotNull(groups = {ResetPassword.class})
    @ApiModelProperty(value = "验证码")
    private String code;

    public interface ResetPassword{}
}
